package com.example.demo.myModel.otd.signup;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@ApiModel(description = "团队报名请求")
public class TeamSignUpRequest {
    
    @ApiModelProperty(value = "竞赛ID", required = true)
    @NotNull(message = "竞赛ID不能为空")
    private Integer competitionId;
    
    @ApiModelProperty(value = "团队名称", required = true)
    @NotBlank(message = "团队名称不能为空")
    @Size(max = 50, message = "团队名称长度不能超过50")
    private String teamName;
    
    @ApiModelProperty("团队简介")
    @Size(max = 500, message = "团队简介长度不能超过500")
    private String teamIntro;
    
    @ApiModelProperty(value = "队长ID", required = true)
    @NotNull(message = "队长ID不能为空")
    private Long leaderId;
    
    @ApiModelProperty("���队成员ID列表")
    private List<Long> memberIds;
    
    @ApiModelProperty(value = "指导教师ID", required = true)
    @NotNull(message = "指导教师ID不能为空")
    private Integer teacherId;
    
    @ApiModelProperty("报名材料")
    private MultipartFile material;
} 